package com.shumei.controller;

import com.shumei.service.ULoginService;
import com.shumei.vo.Result;
import com.shumei.vo.params.RegisterParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class RegisterController {
    @Autowired
    ULoginService uLoginService;
    @PostMapping("register")
    public Result Register(@RequestBody RegisterParam registerParam){

        return uLoginService.regist(registerParam);
    }
}
